package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class FollowStudent {

    public static final int UNREVIEWED = 0;
    public static final int AUDITED = 1;

    private Long id;

    //交流目的
    private SystemDictionaryBill talkPurpose;

    //交流方法
    private SystemDictionaryBill talkMode;

    //交流时间(时间长短)
    private String talkTime;

    //跟踪人
    private Employee followPerson;

    //跟踪时间
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date followTime;

    //下次跟踪时间
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date nextFollowTime;

    //第几次跟踪
    private Integer followNumber;

    //交流内容
    private String talkContent;

    //备注
    private String summary;

    //潜在客户对象
    private PotentialCustomer potentialcustomer;

    //状态
    private Integer state = FollowStudent.UNREVIEWED;

    //审核说明
    private String audit;
}